﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PoemCrawler
{
    public class CrawlerEvent
    {
        public delegate void CrawStartHandler(object sender, CrawStartEventArgs e);  //声明委托
        public delegate void CrawEndHandler(object sender, CrawEndEventArgs e);
        public delegate void CrawFailHandler(object sender, CrawFailEventArgs e);

        public record CrawStartEventArgs(string Url);
        public record CrawEndEventArgs(string Url);
        public record CrawFailEventArgs(string Url, string Reason);
    }
}
